package oop3;

/**
 * @author oldliu
 * @since 1.0
 */
public class Truck {
    String no;//车牌
    int cap;//载重，单位是吨

    public Truck(String no, int cap) {
        this.no = no;
        this.cap = cap;
    }

    public void run() {
        System.out.println("货车" + no + ",载重是" + cap + "吨，挣钱糊口");
    }
}
